package com.zeta.eduservice.service.impl;

import com.zeta.eduservice.entity.EduTeacher;
import com.zeta.eduservice.entity.EduTeachergroup;
import com.zeta.eduservice.entity.vo.TeacherVo;
import com.zeta.eduservice.mapper.EduTeachergroupMapper;
import com.zeta.eduservice.service.EduTeachergroupService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 教师组和教师中间表 服务实现类
 * </p>
 *
 * @author zeta
 * @since 2020-10-20
 */
@Service
public class EduTeachergroupServiceImpl extends ServiceImpl<EduTeachergroupMapper, EduTeachergroup> implements EduTeachergroupService {

	@Override
	public List<TeacherVo> getTeacherList(String id) {
		List<TeacherVo> teacherById = baseMapper.getTeacherById(id);
		return teacherById;
	}

	@Override
	public List<EduTeachergroup> getListByTeacherId(String teacherId) {
		
		return baseMapper.getTeacherGroupById(teacherId);
	}

	@Override
	public List<EduTeacher> getListByGroupId(Page<EduTeacher> page,String GroupId){
		return baseMapper.getByGroupId(page, GroupId);
	}
}
